﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Titan.Runtiming
{
    public enum ServiceChangedAction
    {
        Add = 1,
        Remove
    }

    public class RuntimeServiceChangedEventArgs : RuntimeEventArgs
    {
        private object _service;
        private ServiceChangedAction _action;

        protected internal RuntimeServiceChangedEventArgs(Runtime runtime, object service, ServiceChangedAction action)
            : base(runtime)
        {
            _service = service;
            _action = action;
        }

        public object Service
        {
            get { return _service; }
        }

        public ServiceChangedAction Action
        {
            get { return _action; }
        }
    }
}
